package ooday05;

public class EnumDemo {
    public static void main(String[] args) {
        Season s = Season.WINTER;
        System.out.println(s.getSeasonName()+","+s.getSeasonDesc());
        switch (s){
            case SPRING:
                System.out.println("天气"+s.getSeasonDesc()+"放风筝去啦");
                break;
            case SUMMER:
                System.out.println("天气"+s.getSeasonDesc()+"游戏去喽");
                break;
            case AUTUMN:
                System.out.println("天气"+s.getSeasonDesc()+"摘苹果去喽");
                break;
            case WINTER:
                System.out.println("天气"+s.getSeasonDesc()+"打雪仗去啦");
                break;
        }








        Season[] seasons = Season.values();
        for (int i = 0; i < seasons.length; i++) {
            System.out.println(seasons[i].getSeasonName()+","+seasons[i].getSeasonDesc());
        }



    }
}
